using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Diagram Feature Capability By Attribute Rule</para>
    /// <para>Add a diagram feature capability by attribute rule to a diagram template</para>
    /// <para>将按属性规则划分的逻辑示意图要素功能添加到逻辑示意图模板</para>
    /// </summary>    
    [DisplayName("Add Diagram Feature Capability By Attribute Rule")]
    public class AddDiagramFeatureCapabilityByAttributeRule : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddDiagramFeatureCapabilityByAttributeRule()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_network_source">
        /// <para>Network Source</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_where_clause">
        /// <para>Expression</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_capability">
        /// <para>Capability</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddDiagramFeatureCapabilityByAttributeRule(object _in_utility_network, object _template_name, _is_active_value _is_active, object _network_source, object _where_clause, _capability_value _capability)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
            this._network_source = _network_source;
            this._where_clause = _where_clause;
            this._capability = _capability;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Diagram Feature Capability By Attribute Rule";

        public override string CallName => "un.AddDiagramFeatureCapabilityByAttributeRule";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _network_source, _where_clause, _capability.GetGPValue(), _description, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Network Source</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Network Source")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _network_source { get; set; }


        /// <summary>
        /// <para>Expression</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Expression")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _where_clause { get; set; }


        /// <summary>
        /// <para>Capability</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Capability")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _capability_value _capability { get; set; }

        public enum _capability_value
        {
            /// <summary>
            /// <para>ALLOW_TO_COLLAPSE_CONTAINER</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ALLOW_TO_COLLAPSE_CONTAINER")]
            [GPEnumValue("ALLOW_TO_COLLAPSE_CONTAINER")]
            _ALLOW_TO_COLLAPSE_CONTAINER,

            /// <summary>
            /// <para>PREVENT_TO_COLLAPSE_CONTAINER</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PREVENT_TO_COLLAPSE_CONTAINER")]
            [GPEnumValue("PREVENT_TO_COLLAPSE_CONTAINER")]
            _PREVENT_TO_COLLAPSE_CONTAINER,

            /// <summary>
            /// <para>ALLOW_TO_REDUCE_JUNCTION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ALLOW_TO_REDUCE_JUNCTION")]
            [GPEnumValue("ALLOW_TO_REDUCE_JUNCTION")]
            _ALLOW_TO_REDUCE_JUNCTION,

            /// <summary>
            /// <para>PREVENT_TO_REDUCE_JUNCTION</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("PREVENT_TO_REDUCE_JUNCTION")]
            [GPEnumValue("PREVENT_TO_REDUCE_JUNCTION")]
            _PREVENT_TO_REDUCE_JUNCTION,

        }

        /// <summary>
        /// <para>Description</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddDiagramFeatureCapabilityByAttributeRule SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}